package clt.com.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import clt.com.service.IHomePageService;


@RestController
public class HomePageController {
	@Autowired
    private IHomePageService homePageService;
	/**
	 * 
	 * @Title getCompanyDtl
	 * @Description: 公司信息
	 * @param: person	
	 * @return void
	 * @throws
	 * @author zzx
	 * @Date 2018年8月23日   上午11:33:17
	 */
	@RequestMapping(value="/homeCompanyInfo",method = RequestMethod.POST)
    public Map<String,Object> homeCompanyInfo(){
		Map<String,String> map = new HashMap<>();
    	map.put("validStsCd", "1");		
		return homePageService.homeCompanyInfo(map);
	}
	/**
	 * 
	 * @Title homePersonInfo
	 * @Description: 董事长信息
	 * @param: person	
	 * @return void
	 * @throws
	 * @author zzx
	 * @Date 2018年8月23日   上午11:33:17
	 */
	@RequestMapping(value="/homePersonInfo",method = RequestMethod.POST)
    public Map<String,Object> homePersonInfo(){
		Map<String,String> map = new HashMap<>();
    	map.put("validStsCd", "1");
		return homePageService.homePersonInfo(map);
	}
	/**
	 * 
	 * @Title homeProductList
	 * @Description: 产品列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月15日   上午11:33:17
	 */
	@RequestMapping(value="/homeProductList", method=RequestMethod.POST)
    public Map<String,Object> homeProductList(String start,String limit) throws Exception { 
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		map.put("start", start);
		map.put("limit", limit);
		return homePageService.homeProductList(map); 
	}
	/**
	 * 
	 * @Title homeInvestDtlById
	 * @Description: 项目详情
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月28日   上午11:33:17
	 */
	@RequestMapping(value="/homeInvestDtlInfo", method=RequestMethod.POST)
    public Map<String,Object> homeInvestDtlById(String investId) throws Exception { 
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		map.put("investId", investId);
		return homePageService.homeInvestDtlById(map); 
	}
	/**
	 * 
	 * @Title homeProductDtlById
	 * @Description: 产品详情
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月28日   上午11:33:17
	 */
	@RequestMapping(value="/homeProductDtlInfo", method=RequestMethod.POST)
    public Map<String,Object> homeProductDtlById(String productId) throws Exception { 
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		map.put("productId", productId);
		return homePageService.homeProductDtlById(map); 
	}
	/**
	 * 
	 * @Title homeNewsList
	 * @Description: 新闻列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月15日   上午11:33:17
	 */
	@RequestMapping(value="/homeNewsList", method=RequestMethod.POST)
    public Map<String,Object> homeNewsList() throws Exception { 
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		return homePageService.homeNewsList(map); 
	}
	/**
	 * 
	 * @Title homeNewsDtlById
	 * @Description: 新闻想起
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月15日   上午11:33:17
	 */
	@RequestMapping(value="/homeNewsDtlInfo", method=RequestMethod.POST)
    public Map<String,Object> homeNewsDtlById(String newsId) throws Exception { 
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		map.put("newsId", newsId);
		return homePageService.homeNewsDtlById(map); 
	}
	/**
	 * 
	 * @Title homeInvestList
	 * @Description: 项目列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月21日   上午11:33:17
	 */
	@RequestMapping(value="/homeInvestList", method=RequestMethod.POST)
    public Map<String,Object> homeInvestList() throws Exception {		
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		return homePageService.homeInvestList(map); 
	}
	/**
	 * 
	 * @Title homeInvestMeetList
	 * @Description: 会议列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月21日   上午11:33:17
	 */
	@RequestMapping(value="/homeInvestMeetList", method=RequestMethod.POST)
    public Map<String,Object> homeInvestMeetList() throws Exception {		
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		return homePageService.homeInvestList(map); 
	}
	/**
	 * 
	 * @Title homeRecruitList
	 * @Description: 招聘列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月21日   上午11:33:17
	 */
	@RequestMapping(value="/homeRecruitList", method=RequestMethod.POST)
    public Map<String,Object> homeRecruitList() throws Exception {		
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		return homePageService.homeRecruitList(map); 
	}
	/**
	 * 
	 * @Title homeRecruitDtlInfo
	 * @Description: 招聘列表
	 * @param: @param person
	 * @return void
	 * @throws Exception
	 * @author zzx
	 * @Date 2018年8月21日   上午11:33:17
	 */
	@RequestMapping(value="/homeRecruitDtlInfo", method=RequestMethod.POST)
    public Map<String,Object> homeRecruitDtlInfo(String recruitId) throws Exception {		
		Map<String,String> map = new HashMap<>();
		map.put("validStsCd", "1");
		map.put("recruitId", recruitId);
		return homePageService.recruitDtlInfoById(map); 
	}
}
